/**
 * Created by Administrator on 2017/3/21.
 */
import React, {Component} from 'react';
import {Form, Button, Radio, Select, Switch, TreeSelect,Descriptions,Tag} from 'antd';
import {connect} from 'dva';
import {routerRedux} from 'dva/router';
class AddPoliciesForm extends Component {
  constructor(props) {
    super(props);
    this.state = {
      showCustom: false
    };
  }

  componentDidMount() {
  }

  render() {

    const props=this.props
    return (
      <div>
        <h3>指定发送分销商</h3>
        <Button icon={'left'} onClick={()=>{
          const {dispatch} = this.props;
          dispatch(routerRedux.goBack());
        }}>后退</Button>
        {
          [{name:123}].map((item,index)=>{
            return   <Descriptions key={index} style={{marginBottom:'15px'}} className="data-desc" size='small' bordered column={2}>
              <Descriptions.Item
                label='头像/昵称'><img src={item.avatar_url} alt="" style={{width:'30px',height:'30px',borderRadius:'50%',marginRight:'5px'}}/>{item.nickname}</Descriptions.Item>
              <Descriptions.Item
                label='姓名'>{item.name}</Descriptions.Item>
              <Descriptions.Item
                label='手机号码'>{item.mobile}</Descriptions.Item>
              <Descriptions.Item
                label='层级'>层级{item.level}</Descriptions.Item>
            </Descriptions>
          })
        }

      </div>
    );
  }
}

const AddPoliciesFormWrap = Form.create()(AddPoliciesForm);
export default connect()(AddPoliciesFormWrap);


